package com.share.chat.service.impl;

import com.share.chat.mapper.SearchMapper;
import com.share.chat.service.SearchService;
import com.share.chat.vo.SearchUsersData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 谢佳豪
 * @data 2021/7/4 - 12:50
 * @description
 */
@Service
public class SearchServiceImp implements SearchService {


    public static final int PAGE_SIZE = 8;

    private SearchMapper searchMapper;

    @Autowired
    public void setSearchMapper(SearchMapper searchMapper) {
        this.searchMapper = searchMapper;
    }

    @Override
    public List<SearchUsersData> searchUsers() {
        return searchMapper.searchUsers(PAGE_SIZE);
    }

    @Override
    public List<SearchUsersData> searchUsersByKeyword(String keyword, int currentPageIndex) {
        return null;
    }
}
